package cn.wostore.wxhelper.Xposed;

import android.view.Menu;
import android.view.MenuItem;
import cn.wostore.wxhelper.R;
import de.robv.android.xposed.XC_MethodHook;

/**
 * @author wuch
 * @date 2018/12/19 0019
 */
public class AddButtonHook extends XC_MethodHook {
    @Override
    protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
        super.beforeHookedMethod(param);
        final Menu menu = (Menu) param.args[0];
        MenuItem item = menu.add(0,4,0,"微信助手插件");
        //item.setIcon(R.mipmap.widget);
    }
}
